package com.example.bledemo.bean;

import java.io.Serializable;

/**
 * Created by Peter_Z.
 * <p>
 * Date: 2025/8/6 0006
 */
public class LocationData {
    private int code;
    private String message;
    private Data data;
    public static class Data implements Serializable {
        private String stationId;
        private String labelId;
        private String msg;
        private int altitude;
        private long areaId;
        private long areaTime;
        private long incomeTimeStamp;
        private long locationTimeStamp;
        private long outcomeTimeStamp;
        private int sourceType;
        private int triggerValue;
        private long mapId;
        private double lat;
        private double lng;
        private double xaxis;
        private double yaxis;
        private double zaxis;

        public String getStationId() {
            return stationId;
        }

        public void setStationId(String stationId) {
            this.stationId = stationId;
        }

        public String getLabelId() {
            return labelId;
        }

        public void setLabelId(String labelId) {
            this.labelId = labelId;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public int getAltitude() {
            return altitude;
        }

        public void setAltitude(int altitude) {
            this.altitude = altitude;
        }

        public long getAreaId() {
            return areaId;
        }

        public void setAreaId(long areaId) {
            this.areaId = areaId;
        }

        public long getAreaTime() {
            return areaTime;
        }

        public void setAreaTime(long areaTime) {
            this.areaTime = areaTime;
        }

        public long getIncomeTimeStamp() {
            return incomeTimeStamp;
        }

        public void setIncomeTimeStamp(long incomeTimeStamp) {
            this.incomeTimeStamp = incomeTimeStamp;
        }

        public long getLocationTimeStamp() {
            return locationTimeStamp;
        }

        public void setLocationTimeStamp(long locationTimeStamp) {
            this.locationTimeStamp = locationTimeStamp;
        }

        public long getOutcomeTimeStamp() {
            return outcomeTimeStamp;
        }

        public void setOutcomeTimeStamp(long outcomeTimeStamp) {
            this.outcomeTimeStamp = outcomeTimeStamp;
        }

        public int getSourceType() {
            return sourceType;
        }

        public void setSourceType(int sourceType) {
            this.sourceType = sourceType;
        }

        public int getTriggerValue() {
            return triggerValue;
        }

        public void setTriggerValue(int triggerValue) {
            this.triggerValue = triggerValue;
        }

        public long getMapId() {
            return mapId;
        }

        public void setMapId(long mapId) {
            this.mapId = mapId;
        }

        public double getLat() {
            return lat;
        }

        public void setLat(double lat) {
            this.lat = lat;
        }

        public double getLng() {
            return lng;
        }

        public void setLng(double lng) {
            this.lng = lng;
        }

        public double getXaxis() {
            return xaxis;
        }

        public void setXaxis(double xaxis) {
            this.xaxis = xaxis;
        }

        public double getYaxis() {
            return yaxis;
        }

        public void setYaxis(double yaxis) {
            this.yaxis = yaxis;
        }

        public double getZaxis() {
            return zaxis;
        }

        public void setZaxis(double zaxis) {
            this.zaxis = zaxis;
        }

        @Override
        public String toString() {
            return "Data{" +
                    "stationId='" + stationId + '\'' +
                    ", labelId='" + labelId + '\'' +
                    ", msg='" + msg + '\'' +
                    ", altitude=" + altitude +
                    ", areaId=" + areaId +
                    ", areaTime=" + areaTime +
                    ", incomeTimeStamp=" + incomeTimeStamp +
                    ", locationTimeStamp=" + locationTimeStamp +
                    ", outcomeTimeStamp=" + outcomeTimeStamp +
                    ", sourceType=" + sourceType +
                    ", triggerValue=" + triggerValue +
                    ", mapId=" + mapId +
                    ", lat=" + lat +
                    ", lng=" + lng +
                    ", xaxis=" + xaxis +
                    ", yaxis=" + yaxis +
                    ", zaxis=" + zaxis +
                    '}';
        }
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "LocationData{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
